package com.yunxi.service.localService.sys;

import com.yunxi.core.service.IServicePlus;
import com.yunxi.model.sys.Role;
import com.yunxi.sys.pojo.RoleVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 枫下 on 2018/1/23.
 */
public interface RoleService extends IServicePlus<Role> {
    @Transactional(timeout = 5000,readOnly = true)
    List listByOrgId(String companyId);

    RoleVO getByRoleCode(String roleCode);
}
